<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="zhibo:manage:add" type="button"
								class="btn btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>新建直播
							</button>
						</div>
						<div class="pull-left columns">
							<input type="text" class="laydate-icon form-control"
								placeholder="请选择显示开始时间" id="startDate" name="startDate"
								onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
								style="background-color: #fff;" readonly />
						</div>
						<div class="pull-left search nopadding">
							<input type="text" class="laydate-icon form-control"
								placeholder="请选择显示结束时间" id="endDate" name="endDate"
								onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
								style="background-color: #fff;" readonly />
						</div>
						<div class="columns pull-left col-md-1 nopadding">
							<select id="type" data-placeholder="类型" name="type"
								class="form-control chosen-select" tabindex="2">
								<option selected value="0">类型</option>
								<option value="1">图文</option>
								<option value="2">视频</option>
							</select>
						</div>
						<div class="pull-left search nopadding">
							<input id="productName" name="productName" type="text"
								class="form-control" placeholder="商品名称">
						</div>
						<div class="columns pull-right" role="group">
							<button class="btn btn-success" onclick="reLoad()">
								<i class="fa fa-search" aria-hidden="true"></i>查询
							</button>
						</div>
					</div>
					<table id="zhiboTable" data-mobile-responsive="true"></table>
				</div>
			</div>
		</div>
		<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_add_h = 'hidden';
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="zhibo:manage:add">
			<script type="text/javascript">
				s_add_h = '';
			</script>
		</div>
		<div shiro:hasPermission="zhibo:manage:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="zhibo:manage:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/appjs/product/zhibo/manage.js"></script>
</body>

</html>